package org.example.test.service.impl;

import org.example.test.entity.Recruit;
import org.example.test.mapper.RecruitMapper;
import org.example.test.service.RecruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecruitServiceImpl implements RecruitService {
    @Autowired
    RecruitMapper recruitMapper;
    @Override
    public List<Recruit> findAll(String recruitName) {
        return recruitMapper.findAll(recruitName);
    }

    @Override
    public int delete(Integer recruitId) {
        return recruitMapper.delete(recruitId);
    }

    @Override
    public int add(Recruit recruit) {
        return recruitMapper.add(recruit);
    }

    @Override
    public int update(Recruit recruit) {
        return recruitMapper.update(recruit);
    }
}
